{% extends 'base/base.html' %}
{% load i18n %}

{% block title %}{% trans '确认删除公告' %} - {{ block.super }}{% endblock %}

{% block content %}
<div class="container-fluid py-4">
    <div class="row justify-content-center">
        <div class="col-md-6">
            <div class="card">
                <div class="card-header">
                    <h5 class="card-title mb-0">{% trans '确认删除公告' %}</h5>
                </div>
                <div class="card-body text-center">
                    <i class="fa fa-exclamation-triangle fa-3x text-danger mb-3"></i>
                    <h5 class="text-danger">{% trans '您确定要删除这个公告吗？' %}</h5>
                    <p class="mb-3">
                        <strong>{{ announcement.title }}</strong>
                    </p>
                    <p class="text-muted">
                        {% trans '删除后将无法恢复，已发送的公告不会受到影响。' %}
                    </p>
                    
                    <form method="post">
                        {% csrf_token %}
                        <div class="d-flex justify-content-center gap-2">
                            <a href="{% url 'projects:announcement_list' %}" class="btn btn-secondary">
                                <i class="fa fa-times"></i> {% trans '取消' %}
                            </a>
                            <button type="submit" class="btn btn-danger">
                                <i class="fa fa-trash"></i> {% trans '确认删除' %}
                            </button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
{% endblock %}